package com.firexxx.study.stream;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;

/**
 * @description: TODO
 * @author: zhuangzhang2
 * @date: 2021-02-10 11:14
 */
public class Main {

    public interface BaseStream<T> extends AutoCloseable {
        BaseStream parallel();
    }

    public interface IntStream extends BaseStream<Integer> {
        @Override
        IntStream parallel();
    }

    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("1");
        list.add("2");

        Set<String> a = list.stream().map(item -> item + " end").sorted().collect(Collectors.toSet());
    }

}
